iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

ISqlMapper.QueryForList Method (String, Object, IList<T>)

Executes a Sql SELECT statement that returns data to populate a number of result objects.

The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
[Visual Basic]
Sub QueryForList( _
   ByVal String As String, _
   ByVal Object As Object, _
   ByVal IList<T> As IList{``0} _
)
[C#]
void <T>QueryForList(
   String statementName,
   Object parameterObject,
   IList<T> resultObject
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.
resultObject
An Ilist object used to hold the objects.

See Also

ISqlMapper Interface | IBatisNet.DataMapper Namespace | ISqlMapper.QueryForList Overload List